<%--
  Created by IntelliJ IDEA.
  User: 九号
  Date: 2022/3/29
  Time: 16:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body onload="setProductCategory('${p.category}')">
<jsp:include page="/admin/login/top.jsp"/>
<div class="main">
    <jsp:include page="/admin/login/left.jsp"/>
    <div class="home">
<form id="userAction_save_do" name="Form1"
      action="${pageContext.request.contextPath}/admin/article/ArticleEdit.jsp" method="post"
      enctype="multipart/form-data">
    <input type="hidden" name="id" value="${p.id}" /> &nbsp;
    <table cellSpacing="1" cellPadding="5" width="100%" align="center"
           bgColor="#eeeeee" style="border: 1px solid #8ba7e3" border="0">
        <tr>
            <td class="ta_01" align="center" bgColor="#ceade2" colSpan="4" height="26">
                <strong>文章编辑</strong>
            </td>
        </tr>
        <tr>
            <td align="center" bgColor="#fdf8f8" class="ta_01">文章标题：</td>
            <td class="ta_01" bgColor="#ffffff">
                <input type="text" name="name" class="bg" value="${p.name }" />
            </td>
        </tr>
        <tr>
            <td align="center" bgColor="#fdf8f8" class="ta_01">文章类别：</td>
            <td class="ta_01" bgColor="#ffffff">
                <select name="category" id="category">
                    <option value="">--选择文章类别--</option>
                    <option value selected="">个人随想</option>
                    <option value selected="个人日记">个人日记</option>
                    <option value selected="人生感悟">人生感悟</option>
                    <option value selected="文章推荐">文章推荐</option>
                    <option value selected="技术分享">技术分享</option>
                </select>
            </td>
        </tr>
        <tr>
            <td align="center" bgColor="#fdf8f8" class="ta_01">文章封面：</td>
            <td class="ta_01" bgColor="#ffffff" colSpan="3">
                <input type="file" name="upload" size="30" value="" /></td>
        </tr>
        <TR>
            <TD class="ta_01" align="center" bgColor="#fdf8f8">文章简述：</TD>
            <TD class="ta_01" bgColor="#ffffff" colSpan="3">
                <textarea name="description" cols="30" rows="3" style="WIDTH: 96%">${p.description}</textarea>
            </TD>
        </TR>
        <TR>
            <td align="center" colSpan="4" class="sep1">
                <img src="${pageContext.request.contextPath}/admin/images/shim.gif">
            </td>
        </TR>
        <tr>
            <td class="ta_01" style="WIDTH: 100%" align="center" bgColor="#fdf8f8" colSpan="4">
                <input type="submit" class="button_ok" value="确定">
                <FONT face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>
                <input type="reset" value="重置" class="button_cancel" />
                <FONT face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>
                <INPUT class="button_ok" type="button" onclick="history.go(-1)" value="返回" />
                <span id="Label1"> </span>
            </td>
        </tr>
    </table>
</form>
    </div>
</div>
<jsp:include page="/admin/login/bottom.jsp"/>
</body>
</html>
